Rename password functions to avoid errors in certain PHP installations
Actually use the right cookie name for sessions
Add database setup script for quick setup