Start with DB shizzle

Added result set interface and an abstract class for it.
Also changed .gitignore so the .idea dir is ignored (made by PHPStorm)