You can rename sql server database using transact-sql and sql server management studio, however to rename the physical files you need to detach the database. This post shows you step by step method to rename sql server database and physical files:
http://www.sqlserverlogexplorer.com/how-to-rename-a-database/